package com.hunliji.monitor.web.controller.manager;

import com.hunliji.common.response.PageData;
import com.hunliji.common.response.ResponseData;
import com.hunliji.monitor.web.model.param.AlarmEnableStatusOperateParam;
import com.hunliji.monitor.web.model.param.QueryAlarmParam;
import com.hunliji.monitor.web.model.param.UpdateAlarmActionTypeParam;
import com.hunliji.monitor.web.model.vo.AlarmActionTypeDetailVO;
import com.hunliji.monitor.web.model.vo.AlarmVO;
import org.springframework.web.bind.annotation.*;

/**
 * 告警管理
 * @author wuchen
 */
@RestController
@RequestMapping("/managerApi/alarm")
public class AlarmManagerController {
    /**
     * 查询列表
     * @param queryAlarmParam
     * @return
     */
    @PostMapping("queryList")
    public ResponseData<PageData<AlarmVO>> queryList(@RequestBody QueryAlarmParam queryAlarmParam){
        return ResponseData.success(null);
    }

    /**
     * 开启
     * @param alarmEnableStatusOperateParam
     * @return
     */
    @PostMapping("/enable")
    public ResponseData enable(@RequestBody AlarmEnableStatusOperateParam alarmEnableStatusOperateParam){
        return ResponseData.success(null);
    }

    /**
     * 关闭
     * @param alarmEnableStatusOperateParam
     * @return
     */
    @PostMapping("/unEnable")
    public ResponseData unEnable(@RequestBody AlarmEnableStatusOperateParam alarmEnableStatusOperateParam){
        return ResponseData.success(null);
    }

    /**
     * 根据告警id查询关联的行动策略详情
     * @param alarmId
     * @return
     */
    @GetMapping("/queryActionType")
    public ResponseData<AlarmActionTypeDetailVO> queryActionType(@RequestParam("alarmId") String alarmId){
        return ResponseData.success(null);
    }

    /**
     * 更新行动策略
     * @param updateAlarmActionTypeParam
     * @return
     */
    @PostMapping("/updateActionType")
    public ResponseData updateActionType(@RequestBody UpdateAlarmActionTypeParam updateAlarmActionTypeParam){
        return ResponseData.success(null);
    }




}
